#TOPDIR=$(shell cd ../../../../../; pwd)
#include $(TOPDIR)/Profile.mak

TARGET=skyqos
OBJS+=main.o suci.o

CFLAGS+=-g -Wall
CFLAGS+=-isystem $(MODEL_APP_DIR)/libstatus/include -isystem $(APPSDIR)/libstatus/include
#CFLAGS+=-DSAMP_DBUG
LDFLAGS+=-L. -luci -I./ -lrt

#CFLAGS+=-g -Wall -I/usr/local/include/uci/
#CFLAGS+=-DSAMP_DBUG
#CFLAGS+=-isystem $(MODEL_APP_DIR)/libstatus/include -isystem $(APPSDIR)/libstatus/include
#LDFLAGS+=-L/usr/local/lib/ -luci -lubox -lpthread -lrt

all:$(TARGET)
skyqos:$(OBJS)
	$(CC) $(LDFLAGS) $(CFLAGS) -o skyqos $(OBJS)  


install:
	sudo cp skyqos /usr/sbin/skyqos
clean: 
	rm -rf ${TARGET} $(OBJS) *.bak

%.o: %.c
	$(CC) $(CFLAGS) -o $@ -c $<

